package org.theSeed.springDynamicDatasource.contract.impl;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import org.theSeed.springDynamicDatasource.utils.DynamicDataSourceUtil;

public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceUtil.getDB();
    }
}